package com.itdachang.design.creatation.factory.simplefactory;

/**
 * 简单工厂
 * Factory 工厂角色 WuLinFactory
 * Product 抽象产品角色 Car
 * ConcreteProduct 具体产品角色 VanCar MiniCar
 * @author gcq
 * @Create 2022-02-07
 */
public class MainTest {
    public static void main(String[] args) {
        WuLinFactory factory = new WuLinFactory();
        AbstractCar van = factory.newCar("van");
        AbstractCar mini = factory.newCar("mini");
        van.run();
        mini.run();
    }
}